package com.CST.mapper.cst;

import com.CST.dto.DateDTO;
import com.CST.entity.RdCostsalaryrelation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author ly
 * @since 2021-12-08
 */
public interface RdCostsalaryrelationMapper extends BaseMapper<RdCostsalaryrelation> {
    List<RdCostsalaryrelation> getRdCostSalaryRelation(RdCostsalaryrelation entity);

    void insertBatchRdCostSalaryRelation(List<RdCostsalaryrelation> list);

    void modifyRdCostSalaryRelation(RdCostsalaryrelation entity);

    void batchDeleteRdCostSalaryRelation(List<Integer> ids);

    void deleteByYearMonth(String yearMonth);

    void deleteByYearMonthAndRule(@Param("yearMonth") String yearMonth, @Param("rule") String rule);

    List<RdCostsalaryrelation> listCostItemByDate(DateDTO dateDTO);

    List<RdCostsalaryrelation> checkRelation(DateDTO dateDTO);

}
